package com.zmzncs.lmtc.module.promotion.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmzncs.lmtc.module.promotion.dao.DurationRuleFeeScaleMapper;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule_fee_scale.DurationRuleFeeScale;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule_fee_scale.DurationRuleFeeScaleDTO;
import com.zmzncs.lmtc.module.promotion.service.DurationRuleFeeScaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Service
public class DurationRuleFeeScaleServiceImpl extends ServiceImpl<DurationRuleFeeScaleMapper, DurationRuleFeeScale> implements DurationRuleFeeScaleService {

    @Autowired
    DurationRuleFeeScaleMapper durationRuleFeeScaleMapper;

    /**
     * 根据停车场id查询支付规则
     */
    @Override
    public List<DurationRuleFeeScaleDTO> getDurationRuleFeeScaleByParkId(String parkId) {
        List<DurationRuleFeeScaleDTO> durationRuleFeeScaleDTOList = durationRuleFeeScaleMapper.getDurationRuleFeeScaleByParkId(parkId);
        return durationRuleFeeScaleDTOList;
    }

}
